<html>
<head>
    <meta charset="utf-8">
    <title>Test title</title>
    <script>
        var log          = [];
        var titleElement = document.getElementsByTagName('title')[0];

        log.push('text: ' + titleElement.text);
        log.push('innerHTML: ' + titleElement.innerHTML);
        log.push('innerText: ' + titleElement.innerText);
    </script>
</head>
<body>
</body>
</html>
